package services;

import java.util.List;

import javax.inject.Inject;

import mappers.UpdatesMapper;
import models.Updates;

public class ProfileService {
    @Inject
    public UpdatesMapper updatesMapper;
    
    public List<Updates> getPosts(String username){
        List<Updates> posts = updatesMapper.getUpdatesByUsername(username);
        return posts;
    }

    public List<Updates> getPostsByUserId(int user_id) {
        List<Updates> posts = updatesMapper.getUpdatesByUserId(user_id);
        return posts;
    }
}
